{extend name="public/basic"/}
{block name="main"}
<button class = "layui-btn layui-btn-success" action="dialog" action-url="{:url('add')}" action-title="新增">新增</button>
<table class = "layui-table">
    <thead>
        <tr>
            <th>图片</th>
            <th>链接</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="records" id="vo"}
            <tr>
                <td>
                    <img src = "{$vo.path}" style="width:60px;height: 60px;"/>
                </td>
                <td>
                    {$vo.link|default=''}
                </td>
                <td>
                    <i class = "layui-icon layui-icon-edit" action="dialog" action-url="{:url('edit',['id'=>$vo['id']])}" action-title="编辑"></i>
                    <i class = "layui-icon layui-icon-delete" action="ajax" action-url="{:url('del',['id'=>$vo['id']])}"/>
                </td>
            </tr>
        {/volist}
    </tbody>
</table>
{/block}